package cn.iocoder.yudao.module.bpm.message.handle;

import cn.iocoder.yudao.module.bpm.message.dto.*;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;


@Slf4j
@RequiredArgsConstructor
@Component
public class ProcessInstanceMessageHandleImpl implements ProcessInstanceMessageHandle{

    public void onProcessInstanceCleanMsg(BpmProcessInstanceCancelledMessage bpmProcessInstanceCancelledMessage){
        log.info("流程取消消息：{}", bpmProcessInstanceCancelledMessage);
    }


    public void onProcessInstanceFinishedMsg(BpmProcessInstanceApproveMessage bpmProcessInstanceApproveMessage){
        log.info("流程结束消息：{}", bpmProcessInstanceApproveMessage);
    }


    public void onProcessInstanceRejectMsg(BpmProcessInstanceRejectMessage bpmProcessInstanceRejectMessage){
        log.info("流程驳回消息：{}", bpmProcessInstanceRejectMessage);
    }


    public void onProcessInstanceCreatedMsg(BpmProcessInstanceCreatedMessage bpmProcessInstanceCreatedMessage){
        log.info("流程创建消息：{}", bpmProcessInstanceCreatedMessage);
    }


    public void onProcessInstanceStartedMsg(BpmProcessInstanceStartedMessage bpmProcessInstanceStartedMessage){
        log.info("流程启动消息：{}", bpmProcessInstanceStartedMessage);
    }

}
